<template>
	<view>
		<view class="intention-box">
			<view class="intention">
				<view class="title">
					物料数量
				</view>
				<view class="content">
					<view class="number">
						<view class="mius">-</view>
						<input class="num" type="number" placeholder="请输入数量" border="none"></input>
						<view class="plus">+</view>
					</view>
					
				</view>
			</view>

			<view class="intention" @click="jumpclassification()">
				<view class="title">
					物料类型
				</view>
				<view class="content">
					<view class="name">
						<text class="inp-box" v-if="form.type_text">{{form.type_text}}</text></text> <text
							v-else>请选择物料类型</text>
					</view>
					<i class="iconfont fontclassarrow_right"></i>
				</view>
			</view>
			<view class="intention block" @click="jumpclassification()">
				<view class="title">
					物料
				</view>
				<view class="content">
					<view class="image-box">
						<view class="image-no" @click="addImgebnt()">
							<text>+</text>
						</view>
						<view class="image" v-for="(item, index) in form.image_list" :key="index">
							<image :src="item" class="img" @click="delImgebnt(index)" />
						</view>

					</view>
				</view>
			</view>
			<view class="intention">
				<view class="title">
					物料规格
				</view>
				<view class="content">
					<picker @change="PickerSpec" :value="form.spec_index" :range="spec_arr" range-key="title">
						<view class="picker-view">
							<view>{{form.spec_index>-1?spec_arr[form.spec_index]['title']:'请选择'}}</view>
							<i class="iconfont fontclassarrow_right"></i>
						</view>
					</picker>
				</view>
			</view>
			<view class="intention">
				<view class="content" v-if="form.spec_index == 0">
					<input type="number" class="inp inp-sm" :value="form.spec.len"/>米*
					<input type="number" class="inp inp-sm" :value="form.spec.width"/>米*
					<input type="number" class="inp inp-sm" :value="form.spec.height"/>米 
				</view>
				<view class="content" v-if="form.spec_index == 1">
					<input type="number" class="inp inp-sm" :value="form.spec.weight"/>千克
				</view>
				<view class="content" v-if="form.spec_index == 2">
					<input type="number" class="inp inp-sm" :value="form.spec.area"/>平方米 
				</view>
				<view class="content" v-if="form.spec_index == 3">
					<input type="number" class="inp inp-sm" :value="form.spec.hour"/>小时
				</view>
			</view>
		</view>
		<view class="delete-box">
			<view class="btn delete-btn deleteShow" @click="deleteBnt">删除</view>
			<view class="space"></view>
			<view class="btn add-btn" @click="ok_form()">保存</view>
		</view>
	</view>

	
</template>

<script src="./page.js"></script>

<style scoped lang="scss">
	@import "./page.scss";
</style>